package com.panshi.modules.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.panshi.modules.utils.DateFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 857
 * @since 2020-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="回答审核属性类", description="")
@TableName("qa_answer_uncheck")
public class QaAnswerUncheck implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "回答ID")
        @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        @ApiModelProperty(value = "回答用户ID")
        private Integer userId;

        @ApiModelProperty(value = "问题的ID")
        private Integer questionId;

        @ApiModelProperty(value = "回答内容")
        private String content;

        @ApiModelProperty(value = "图片地址")
        private String photoPath;

        @ApiModelProperty(value = "回答时间")
        @TableField(fill = FieldFill.INSERT)
    private Date createTime;

        @ApiModelProperty(value = "发布时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date publishTime;

        @ApiModelProperty(value = "审核时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date checkTime;

        @ApiModelProperty(value = "审核人ID")
        private Long checkUserId;

        @ApiModelProperty(value = "审核描述")
        private String checkDescribe;

        @ApiModelProperty(value = "状态:0-审核中,1-已通过,2-未通过")
        private Integer status;

        @TableLogic
        @ApiModelProperty(value = "删除;0-删除,1-未删除")
        private Integer deleted;

    @ApiModelProperty(value = "用户关系映射")
    @TableField(exist = false)
    private UserMember userMember;

}
